
<script type="text/javascript" src="sf/reviews.js"></script>
<script type="text/javascript">
<!--
	/**
	DEFAULT OPTIONS, CAN BE OVERRIDEN
	var defaultsOptions = {
		//don't override this one unless you know what you are doing
		url:"http://www.cosmores.com/reviews_json.php",
		
		//hotel id must be given, its required
		hotel_id:"",
		
		from overall path till value path its the images that will be shown for each service of the hotel. they have already a default image path so you don't need to specify unless if you want to show your custom icons
		overall_path:"",
		location_path:"",
		staff_path:"",
		services_path:"",
		clean_path:"",
		comfort_path:"",
		value_path:"",
		
		//the with and heigh of the div element that will show the reviews
		width:"",
		height:"",
		
		loader_path:"http://www.cosmores.com/layout/indicator_big.gif",
		loader_visible:false,
		loader_background_color:"#000000",
		loader_background_opacity:0.8,
		
		//complete argument is a function that can be used to totally override the default visual behavior of the reviews plugin. if you provider a callback function to the complete argument then its up to the user how to handle the html view,
		//example 
		jQuery("#myDiv").reviews({
			hotel_id:"myId",
			complete:function(data){
				if(data.answer=="true"){
					//get the overall, location, staff, services, clean, comfort, value for money values
					data.overall	, data.location, data.staff, data.services, data.clean, data.comfort, data.value
					//total reviews
					data.total
					//total subdomain of the hotel
					data.subdomain
				}
			}
		});
		complete:"",
		
		//by default shows the total reviews and align them to the right
		show_total_reviews:true,
		//valid values are, "left", "center", "right"
		align_total_reviews:"right",
		
		//by default shows a link that redirects in a new window to the subdomain.cosmores.com#reviews url
		show_link_reviews:true,
		//value values are , "left, "center", "right"
		align_link_reviews:"left"
	}
	**/
	function loadScript(){
		jQuery("#divReviews").reviews({
			hotel_id:"<?php echo $hotelid ?>",//
			loader_visible:false,
			show_link_reviews:true,
			align_total_reviews:"right"
		});
	}//loadScript
//-->
</script>
<style type="text/css">
/** how to style the reviews **/
#divReviews{
	background-color:#<?php echo $color3 ?>;
	color:#<?php echo $color4 ?>;
}
#divReviews span{
	font-family:Tahoma, Geneva, sans-serif;
	font-size:13px;
}
#divReviews table tr td{
	font-family:Tahoma, Geneva, sans-serif;
}
#divReviews table tr td a{
	text-decoration:none;
	font-size:14px;
}
</style>


            <div id="divReviews">
    </div>
    <br />
	<script type="text/javascript">
	jQuery(document).ready(function(){
jQuery("#divReviews").reviews({ 
 hotel_id:"<?php echo $hotelid ?>",// 
 loader_visible:false, 
 show_link_reviews:true, 
 align_total_reviews:"right" 
 });

});
 
</script>

