// JavaScript Document

/*function openDialog(){
	
	$( "#dialog-modal" ).dialog({
				buttons: [
    {
        text: ":) متوجه شدم ",
        click: function() { $(this).dialog("close"); }
    }
]
,
			height: 520,
			width: 450,
			modal: true,
			title: 'توجه'
		});
	}		*/
	
	
	
	
function checkForm(){
	
	var name=document.forms["form1"]["name"].value;
	var phone=document.forms["form1"]["phone"].value;
	var mobile=document.forms["form1"]["mobile"].value;
	var email=document.forms["form1"]["email"].value;
	var isOk=new Array();
	
if(name.length==0){

	$('#nameStar').attr('style','visibility:visible');
	
	isOk[0]=0;
	}else{
$('#nameStar').attr('style','visibility:hidden');
	
		isOk[0]=1;
				}
	  
if(phone.length==0){

	$('#phoneStar').attr('style','visibility:visible');
	
	isOk[1]=0;
	}else{
$('#phoneStar').attr('style','visibility:hidden');
	
		isOk[1]=1;
				}
	  
	  
if(mobile.length==0){

	$('#mobileStar').attr('style','visibility:visible');
	
	isOk[2]=0;
	}else{
$('#mobileStar').attr('style','visibility:hidden');
	
		isOk[2]=1;
				}
	  
	  
if(email.length==0){
	

	 
	$('#mailMsg').attr('style','visibility:visible');
	
	isOk[3]=0;
	}else{
$('#mailMsg').attr('style','visibility:hidden');
	
		isOk[3]=1;
				}
				
				var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
				
     if (email.search(emailRegEx) == -1) {
         $('#mailMsg2').attr('style','visibility:visible');
		 isOk[4]=0;
     }else{
		   $('#mailMsg2').attr('style','visibility:hidden');
		    isOk[4]=1;
		 }
				
				canSend=true;
				
				for(i=0;i<isOk.length;i++){
					
					if(isOk[i]==0){
					canSend=false;}
					
					}
					
					if(canSend){
						document.forms["form1"].submit();
						}
	  
	}

function closeAd(){
	$('#adMessageLiq').remove();
	}
           var items_per_page=10;
		   
          function pageselectCallback(page_index){
			  
			
			
			  var new_content=new Array();
			    var num_entries = jQuery('#hiddenresultList div.ciscoItems').length;
			 
			 
			
			   var max_elem = Math.min((page_index+1) * items_per_page, num_entries);
			
			  for(var i=page_index*items_per_page;i<max_elem;i++){
				
				   var tmp=jQuery('#hiddenresultList div.ciscoItems:eq('+i+')').clone();
				    new_content.push(tmp);
				  }
              
                $('#listContainer').empty();
				for(var i=0;i<new_content.length;i++){
				$('#listContainer').append(new_content[i]);
				}
				
             
				
					$("a[rel=fancyBox]").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
				
			});
				
				
				
            }
           
            /** 
             * Initialisation function for pagination
             */
            function initPagination(items_per_page) {
				 
                // count entries inside the hidden content
                var num_entries = jQuery('#hiddenresultList div.ciscoItems').length;
                // Create content inside pagination element
                $("#Pagination").pagination(num_entries, {
                    callback: pageselectCallback,
                    items_per_page:items_per_page,
					load_first_page:true,
					num_edge_entries:3
					
                });
				
			
				
             }
            var discVar=0.05;
			
	
				
				
				
				
				function changePrice(option){
					if(typeof(option)=='object'){
					var tmp=option.value.split(',')}else{
						var tmp=option.split(',')
						};
					var price=tmp[0];
					var codeCourse=tmp[1];
					
					
					var total=price-(price*discVar);
					
			$('#priceLabel').text(total);
			$('#priceHidden').attr('value',total);
			
			$('#courseCode').attr('value',codeCourse);
								
			}
			
					function applyDiscount(option){
				switch(option.value){
					case "1":alert('مدارک مربوط به این گزینه در جلسه اول دریافت خواهد شد');discVar=0.1;break;
					case "2":alert('مدارک مربوط به این گزینه در جلسه اول دریافت خواهد شد');discVar=0.05;break;
					case "3":discVar=0.1;break;
					case "4":alert('مدارک مربوط به این گزینه در جلسه اول دریافت خواهد شد');discVar=0.05;break;
					case "5":discVar=0.05;break;
					}
					tmp=document.forms["form1"]["coursesDrop"].value;
					$('#discountLabel').text(discVar*100);
					
					changePrice(tmp);
				}
			
			function getCode() {
				
    var loc = window.location;
    var pathName = loc.pathname.substring(0, loc.pathname.lastIndexOf('/') + 1);
	var whole=loc.href.substring(0, loc.href.length);
	
	var code=whole.split('code=');
	var newLoc=loc+"?code=N1";

	if(typeof(code[1])=='undefined'){
			
		// window.location=newLoc;
		}
    return code[code.length-1];
   
	
}
			
			function selectItem(codes){
				
				var code=getCode();
				
				$('#courseCode').attr('value',code);
				
				
				var indexToSelect=0;
				for(i=0;i<codes.length;i++){
					if(codes[i]==code){
					indexToSelect=i;
					break;
					}
					}
					
				var selObj = document.getElementById('coursesDrop');
			
				selObj.selectedIndex=indexToSelect;
				var tmp=selObj.selectedIndex;
				
	changePrice(selObj.options[tmp]);


				
				
				}
		
//-------------------------------document reade---------------------------------//			
            // When document is ready, initialize pagination
            $(document).ready(function(){    
			
			
			
			
		jQuery.fn.exists = function(){return this.length>0;}
		if($('.paymentForm').exists()){
			
		
			// $("#form1").validate();
			 
			
			
		
		$.ajax({
url : "payform.php",
success : function (data) {
$('.paymentForm').html(data);

$.ajax({
				type: "GET",
				url: "courses.xml",
				dataType: "xml",
				success: function(xml) {
					var select = $('#coursesDrop');
					
					var codes=new Array();
					
					$(xml).find('menuitem').each(function(){
						var title = $(this).find('course').text();
						var valuePrice = $(this).find('value').text();
						var code = $(this).find('code').text();
						codes.push(code);
						$(this).find('text').each(function(){
							var value = $(this).text();
							
							select.append("<option value='"+valuePrice+","+code+"'>"+title+" - "+value+"</option>");
						
						});
					});
					//select.children(":first").text("دوره مورد نظر...").attr("selected",true);
					select.children(":first").remove();
					select.children(":first").attr("selected",true);
					selectItem(codes);
					//alert(select.selectedIndex);
				}
			});
			

}
});
			
			

			
		}
		
	
		if($('#SlideDeck_Bug*').exists()){
			alert('tada')
			}
			
			
		if($('.slidedeck').exists()){
		 $('.slidedeck').slidedeck({
			 speed: 500,
            transition: 'swing',
            start: 1,
			autoPlay: true,
            autoPlayInterval: 5000,
			cycle: true
			 });
			 
			 
		//removeSlideIcon();
	
		
		 }
if($('#slider').exists()){
		
$('#slider').anythingSlider({
	 Theme:"Metallic",	
	buildArrows         : false,      // If true, builds the forwards and backwards buttons
  buildNavigation     : false,
  autoPlay            : true,
  startStopped        : true,
   pauseOnHover        : false,
  
  delay               : 4000,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
  animationTime       : 600

	
	});
	
 $('#slider').append('<div><img src="http://raf.ir/images/slides1.jpg" alt="" /></div>').anythingSlider(); // update the slider
 $('#slider').append('<div><img src="http://raf.ir/images/slides2.jpg" alt="" /></div>').anythingSlider(); // update the slider
  $('#slider').append('<div><img src="http://raf.ir/images/slides3.jpg" alt="" /></div>').anythingSlider(); // update the slider
  
  
  
	}

					if($('#NewsDetail00Middle_lblTitle').exists()){
$('#ReviewSummary10Middle_lblAverageCaption').parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().remove();
$('#ReviewList20Middle_lblMessage').parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().remove();
$('#ReviewEdit30Middle_pnlForm').parent().parent().parent().remove();
$('#ReviewEdit30Middle_pnlForm').remove();

$('#ReviewList20Middle_egItems__ctl3_lblReviewTitle').parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().remove();

		
		}
		
	/*if(	$(".slidedeck .active").exists()){
		$('.slidedeck .sliderTitle a').each(function(index) {
		$(this).attr({href:''});
		
		
		
		});
		$(".slidedeck .active .sliderTitle a").attr({href:'http://www.aa.com'})
		}*/
		
		if($('.tools').exists()){
			$('.tools').first().parent().html('<td><a id="macaffe" style="position:absolute;border:0px;margin:-19px -66px 0 0px" href="http://www.siteadvisor.com/sites/raf.ir" target="_blank"><img height="38px" width="80px" src="http://raf.ir/images/SiteAdvisorSafe.gif"></a></td>')
			$('.tools').parent().remove();
			}
			
			
if($('#temMessage').exists()){
	
		$('#temMessage').html('');
		$('#temMessage').attr({id:"nothing"});
		}
		
		/*if($('#adMessageLiq').exists()){
			$.ajax({
url : "adLiquid.html",
success : function (data) {
$('#dialog-modal').html(data);}
});

			$( "#dialog-modal" ).dialog({
			height: 140,
			width: 300,
			modal: true,
			title: 'توجه'
		});
		
		}*/
		
		
	/*	
if($('#adLiquidRegisterNotes').exists()){
			$.ajax({
url : "adLiquidRegisterNotes.html",
success : function (data) {
$('#dialog-modal').html(data);}
});

$(".callUs").attr('onClick','openDialog()');

			$( "#dialog-modal" ).dialog({
				buttons: [
    {
        text: "متوجه شدم :)",
        click: function() { $(this).dialog("close"); }
    }
]
,
			height: 520,
			width: 450,
			modal: true,
			title: 'توجه'
		});
		
		}
		*/

		if($('#adMessageHome').exists()){
		/*	$.ajax({
url : "adLiquidHome.html",
success : function (data) {
$('#dialog-modal').html(data);}
});

			$( "#dialog-modal" ).dialog({
			height: 230,
			width: 450,
			modal: true,
			title: 'استخدام'
		});*/
		
		}
		
		
		
function closeLiquid(){
	$('#adMessageLiq').remove();
	}
	
	
	if($('#readMoreDiv').exists()){
		$('#readMoreDiv').hide();
		$('#clickme').click(function() {
			
			if($('#clickme').html()=='<strong style="color:red"><a href="#clickme" >ادامه متن...</a></strong>'){
			$('#clickme').html('<strong style="color:red"><a href="#clickme" >بستن متن...</a></strong>')}else{
				$('#clickme').html('<strong style="color:red"><a href="#clickme" >ادامه متن...</a></strong>')
				}
  $('#readMoreDiv').toggle('slow', function() {
    // Animation complete.
  });
});
		

		}
		
		if($('#vertMenuRight').exists() /*&& $('#vertMenuRightSupport').exists()*/){
		
		var menuids=new Array("verticalmenu") //Enter id(s) of UL menus, separated by commas
var submenuoffset=2 //Offset of submenus from main menu. Default is -2 pixels.

function createcssmenu(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul");
    for (var t=0; t<ultags.length; t++){
    var spanref=document.createElement("span")
		spanref.className="arrowdiv"
		spanref.innerHTML="&nbsp;&nbsp;"
		ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.right=this.parentNode.offsetWidth+submenuoffset+"px"
    this.getElementsByTagName("ul")[0].style.display="block"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.display="none"
    }
    }
  }
}


if (window.addEventListener)
window.addEventListener("load", createcssmenu, false)
else if (window.attachEvent)
window.attachEvent("onload", createcssmenu);

		}
						
						$.ajax({
url : "announceBoard.html",
success : function (data) {
$('#announceBoardHome').html(data);}
});
						
					
					$.ajax({
url : "trainingMenuHtml.html",
success : function (data) {
$('#trainTopMenu').html(data);

$(".myMenu").buildMenu(
    {
     
     
      menuWidth:200,
      openOnRight:false,
     
      
      hasImages:false,
      fadeInTime:100,
      fadeOutTime:300,
      adjustLeft:2,
      minZindex:"auto",
      adjustTop:10,
      opacity:.95,
      shadow:true,
      shadowColor:"#ccc",
      hoverIntent:0,
      openOnClick:false,
      closeOnMouseOut:true,
      closeAfter:1000,
      submenuHoverIntent:200
    });
	
	
 //this function get the id of the element that fires the context menu.
  function testForContextMenu(el){
    if (!el) el= $.mbMenu.lastContextMenuEl;
    alert("the ID of the element is:   "+$(el).attr("id"));
  }

  function recallcMenu(el){
    if (!el) el= $.mbMenu.lastContextMenuEl;
    var cmenu=+$(el).attr("cmenu");
    $(cmenu).remove();
  }

  function loadFlash(){
    $.ajax({
      url:"testFlash/test.html",
      success:function(html){
        $("#flashTest").html(html);
      }
    });
  }

  function showMessage(msg){
    var msgBox=$("<div>").addClass("msgBox");
    $("body").append(msgBox);
    msgBox.append("You click on: <br>"+msg);
    setTimeout(function(){msgBox.fadeOut(500,function(){msgBox.remove();})},3000)
  }

}
});

					
    


		$.ajax({
url : "trainVerticalMenu.html",
success : function (data) {
$("#vertMenuRight").html(data);
$('#verticalMenuRight li a').hover(
				function () {
				height = $(this).height() * (-1);
				$(this).stop().animate({'backgroundPosition':'(0 ' + height + ')'}, {duration:200});	
			}, 
			
			function () {
				$(this).stop().animate({'backgroundPosition':'(0 0)'}, {duration:200});	
			}
		);
		
}
});
/*
$.ajax({
url : "supportVertMenu.html",
success : function (data) {
$("#vertMenuRightSupport").html(data);
$('#vertMenuRightSupport li a').hover(
				function () {
				height = $(this).height() * (-1);
				$(this).stop().animate({'backgroundPosition':'(0 ' + height + ')'}, {duration:200});	
			}, 
			
			function () {
				$(this).stop().animate({'backgroundPosition':'(0 0)'}, {duration:200});	
			}
		);
		
}
});*/


  			$.ajax({
url : "supportBottomBanners.html",
success : function (data) {
$('#bottomBannersSupportHome').html(data);}
});

		
			$.ajax({
url : "trainBottomBanner.html",
success : function (data) {
$('#bottomBannersTrainHome').html(data);}
});


$.ajax({
url : "googleMap.html",
success : function (data) {
$('#mapGoogle').html(data);}
});
  
 $.ajax({
url : "gmapAbout.html",
success : function (data) {
$('#gmapAbout').html(data);}
});
  
					
					
					
					
					
		$.ajax({
url : "topFlashBanner.html",
success : function (data) {
$('#topFlashBanner').html(data);}
});


$.ajax({
url : "liveTrainingScript.html",
success : function (data) {
$('#trainingLiveSupport').html(data);}
});
		
			
   
	
				$.ajax({
url : "topSupport.html",
success : function (data) {
	
$('.language').parent().html(data);

$('#gplusDiv').tooltip({ position : 'bottom center'})
}

});
			 
		
					
				/*	$('#newsTickerVertical').vTicker({
						speed: 500,
						pause: 3000,
						showItems: 2,
						animation: 'fade',
						mousePause: true,
						height: 0,
						direction: 'up'}
										);*/

	
			
			
jQuery.fn.exists = function(){return this.length>0;}

	
if($('#NewsDetail00Middle_lblTitle').exists()){
	
	/*	$.ajax({
url : "seminarLiquid.html",
success : function (data) {
$("#incLeft_tdleft").html(data);
}
});*/
	
	
	}
	
	
		
if($('#tablesorter').exists()){
	$("#tablesorter").tablesorter();
	}
	
	if($('.reserveFormTraining').exists()){
	var thml=$("#DBFormFillEdit00Middle_tblFormFill").html();
	$("#DBFormFillEdit00Middle_tblFormFill").parent().html('');
	$(".reserveFormTraining").html(thml);
	
	}
	
if($('#tablesorterDiscounts').exists()){
	$("#tablesorterDiscounts").tablesorter();
	}
	
	
	
	
	
	if($('#registerTrainingAccordion').exists()){
	var thml=$("#DBFormFillEdit00Middle_tblFormFill").html();
	$("#DBFormFillEdit00Middle_tblFormFill").parent().html('');
	$("#reserveFormAccard").html(thml);
	
	}



	
	
	
if($('#HP-cisco-right-sidebar').exists()){
		
	
		
		
		$.ajax({
url : "hp-cisco-right-sidebar.html",
success : function (data) {
$("#HP-cisco-right-sidebar").html(data);
}
});
}


if($('#WarrantySearch10Middle_pnlWarrantyItems').exists()){
	
	$('#bBanner').attr({
		id:'bBannerChanged'
		});
	}
	
if($('#WarrantySearch10Middle_tblMessage').exists()){
	
	$('#bBanner').attr({
		id:'bBannerChanged2'
		});
	}

if($('#hpDetailDiv').exists()){
	$('#catListOptional').attr({id:'catListOptionalHP'});
	}




	
	if($('#catListOptional').exists()){
		
	
		
		
		$.ajax({
url : "accordion.html",
success : function (data) {
$("#catListOptional").html(data);

jQuery('#accordinCategoriesContainer').accordion({
			fillSpace:true,
			clearStyle:true,
			header: '.accTitle',
			autoHeight:true,
			event: 'mouseover',
			animated: 'easeslide'
		});
}
});
	
	
		
	}
	
	
	jQuery('#HPaccordion').accordion({
			fillSpace:true,
			clearStyle:true,
			header: '.accTitle',
			active: false,
			autoHeight:false,
			event: 'mouseover',
			animated: 'easeslide'
		});
		jQuery('#ciscoAccorrion').accordion({
			fillSpace:true,
			clearStyle:true,
			header: '.accTitle',
			active :false,
			autoHeight:false,
			event: 'mouseover',
			animated: 'easeslide'
		});
	
	
if($('#adsThumbnailContainer').exists()){
	
		$.ajax({
url : "adsss.html",
success : function (data) {
	
$("#adsThumbnailContainer").html(data);

$(".eachAdThumb").bind("contextmenu", function(e) {
                e.preventDefault();
            });
$("a[rel=fancyBoxForAds]").fancybox({
						
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'onComplete'	:	function() {
					
					$("#fancybox-img").bind("contextmenu", function(e) {
                e.preventDefault();
            });
					
					
					
					}
				
			});

}

});
	
	

}




	
	if($('#catListOptionalHP').exists()){
		
	
		
		
		$.ajax({
url : "accordionHP.html",
success : function (data) {
$("#catListOptionalHP").html(data);

jQuery('#accordinCategoriesContainer').accordion({
			fillSpace:true,
			clearStyle:true,
			header: '.accTitle',
			autoHeight:true,
			event: 'mouseover',
			animated: 'easeslide'
		});
}
});
	
	
		
	}



	if($('#incBottom_tdBottom').exists()){
		
		//hide radcom logo and replace by logos bottom
		$.ajax({
url : "bottomLogos.html",
success : function (data) {

	$('#incBottom_tdBottom').children().children().next().next().next().children().html(data);
}
});
	
	
		
	}
	
	
//$('#incBottom_tdBottom').children().children().next().next().next().children().text(' ');//hide radcom logo
/*$('#newsTickerVertical').children().text('');

$('.head3').each(function(index) {
		var newNews=$(this).text();
		
		$('#newsTickerVertical').children().append('<li>'+newNews+'</li>')
		
		});
*/

if($('#flashGalleryAbout').exists()){
			
		flashMovie = $('#flashGalleryAbout');

		flashMovie.flash(
			{
				swf: 'http://raf.ir/aboutGallery/gallery.swf',
				width: 700,
				height: 300,
				play:true
			}
		);}
		
if($('#flashGalleryContent').exists()){
			
		flashMovie = $('#flashGalleryContent');

		flashMovie.flash(
			{
				swf: 'trainGallery/gallery.swf',
				width: 700,
				height: 300,
				play:true
			}
		);}
		
if($('#registerTrainingAccordion').exists()){
jQuery('#registerTrainingAccordion').accordion({
			fillSpace:false,
			clearStyle:false,
			header: '.accTitle',
			autoHeight:false,
			event: 'mouseover',
			animated: 'easeslide'
		});
}

if($('#softwareCovers').exists()){
	 $("#softwareCovers").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev"
    });
	}

if($('.homeTrainContentMiddle').exists()){
			
		flashMovie = $('.homeTrainContentMiddle');

		flashMovie.flash(
			{
				swf: 'http://raf.ir/flash/trainingIntro.swf',
				width: 695,
				height: 392,
				play:true
			}
		);
		
		}




if($('#madarek').exists()){
	
	$.ajax({
url : "madarek.html",
success : function (data) {
$('#madarek').html(data);

	$("body").bind("contextmenu", function(e) {
                e.preventDefault();
            });
			
			
$(".eachAdThumb").bind("contextmenu", function(e) {
                e.preventDefault();
            });
			
$("#fancybox-img").bind("contextmenu", function(e) {
                e.preventDefault();
            });
		
			
			
$("a[rel=fancyBoxForAds]").fancybox({
						
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
				

});


			
			

}
});
	





}

//$('#categoryContainer').parent().load('accordion.html');





			
			var Jhref = jQuery(location).attr('href');
	var Jtitle = jQuery(this).attr('title');
	
	
	$('.ciscoItems').each(function(index) {
		var myClass = $(this).attr("class");

		if(myClass.split(' ')[1]!="HPItems"){
		var prevUrl='';//'http://www.raf.ir/';
			
   var imageUrl = $(this).children().children().children().children().attr('src');
   var destUrl=prevUrl+imageUrl;
   
	$(this).children().children().children().children('img').attr({src: prevUrl+imageUrl});
	
	var destHref=destUrl.replace("/s/","/v/");
	
	
	
	$(this).children().children().children('a').attr({ href: destHref ,
														rel:'fancyBox'
														});//changing the image link
												
	$(this).children().children().next().children().children('a').attr({ href: destHref,
																		rel:'fancyBox'
	 																						});
													}//end of IF HPItems
													
													
													
													
														
	$(this).children().children().next('div').html('<div id="shareText">Share on: &nbsp;</div>' +
                 '<div class="socialIcons">'+
                '<a class="googlePageURL" href="#"><img src="images/1308722896_google.png" width="32" height="32" alt="google" /></a>'+
              '  <a class="yahooPageURL" href="#"><img src="images/1308722785_yahoo.png" width="32" height="32" alt="yahoo" /></a>'+
             '   <a class="facebookPageURL" href="#"><img src="images/1309092107_netvibes.png" width="32" height="32" alt="netvibes" /></a>'+
             '   <a class="twitterPageURL" href="#"><img src="images/1309092148_delicious.png" width="32" height="32" alt="delicious" /></a>'+
             
              '  <a class="linkedinPageURL" href="#"><img src="images/1308722762_linkedin.png" width="32" height="32" alt="linkedIn" /></a>'+
                  ' </div>');
				  
	//changing the link-title's link
	
		
	
  });
  
	
if($('.reserveFormTraining').exists()){
			$('.reserveFormTraining').parent().parent().parent().parent().children(":first").remove();
			}
  
	
	jQuery('.googlePageURL').attr({ 
              href: 'http://www.addtoany.com/add_to/google_bookmarks?linkurl='+Jhref+'&amp;type=page&amp;linkname=Rayan%20Andishan%20Faraz&amp;linknote='+Jtitle,
    		  title: Jtitle,
			  alt: Jtitle,
			  rel: ''
});

	jQuery('.twitterPageURL').attr({ 
              href: 'http://www.addtoany.com/add_to/delicious?linkurl='+Jhref+'&amp;type=page&amp;linkname=Rayan%20Andishan%20Faraz&amp;linknote='+Jtitle,
    		  title: Jtitle,
			  alt: Jtitle,
			  rel: ''
});



jQuery('.yahooPageURL').attr({ 
              href: 'http://www.addtoany.com/add_to/yahoo_messenger?linkurl='+Jhref+'&amp;type=page&amp;linkname=Rayan%20Andishan%20Faraz&amp;linknote='+Jtitle,
    		  title: Jtitle,
			  alt: Jtitle,
			  rel: ''
});

jQuery('.facebookPageURL').attr({ 
              href: 'http://www.addtoany.com/add_to/netvibes_share?linkurl='+Jhref+'&amp;type=page&amp;linkname=Rayan%20Andishan%20Faraz&amp;linknote='+Jtitle,
    		  title: Jtitle,
			  alt: Jtitle,
			  rel: ''
});

jQuery('.stumblePageURL').attr({ 
              href: 'http://www.addtoany.com/add_to/stumbleupon?linkurl='+Jhref+'&amp;type=page&amp;linkname=Rayan%20Andishan%20Faraz&amp;linknote='+Jtitle,
    		  title: Jtitle,
			  alt: Jtitle,
			  rel: ''
});

jQuery('.linkedinPageURL').attr({ 
              href: 'http://www.addtoany.com/add_to/linkedin?linkurl='+Jhref+'&amp;type=page&amp;linkname=Rayan%20Andishan%20Faraz&amp;linknote='+Jtitle,
    		  title: Jtitle,
			  alt: Jtitle,
			  rel: ''
});
			  
                initPagination(items_per_page);
				
		

			

			
			
			
            });
            
          
