// AJAX
jQuery(window).load(function () {
      jQuery('#pltdkr').load('/templates/3/pltdkor.htm');
    { jQuery('#advt').load('/templates/3/advert.htm'); }
    });
$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
				$("a[rel='mode1']").colorbox({maxHeight:"100%"});
				$("a[rel='mode2']").colorbox({transition:"fade", maxHeight:"100%"});
				$("a[rel='mode3']").colorbox({transition:"none", width:"75%", height:"75%"});
				$("a[rel='mode4']").colorbox({slideshow:true});
				$("a[rel='mode5']").colorbox({transition:"fade", height:"100%"});
				$(".single").colorbox({}, function(){
					alert('Howdy, this is an example callback.');
				});
				$(".colorbox").colorbox();
				$(".youtube").colorbox({iframe:true, width:650, height:550});
				$(".iframe").colorbox({width:"80%", height:"80%", iframe:true});
				$(".inline").colorbox({width:"50%", inline:true, href:"#inline_example1"});
				
				//Example of preserving a JavaScript event for inline calls.
				$("#click").click(function(){ 
					$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
					return false;
				});
			});
			
//Fading in/out planes
$(function(){
$('#fade').hide();
$('#rdmr').toggle(function() {
$('#fade').fadeIn('slow');
	},
	function() {
		$('#fade').fadeOut('slow');
	}
	)
});

//ODD and OVER TABLE TRS
$(function(){
$("table tr:nth-child(even)").addClass("odd");
});
$(document).ready(
  function()
  {
  	$("tr").mouseover(function() {
  		$(this).addClass("over");
  	});
  
  	$("tr").mouseout(function() {
  		$(this).removeClass("over");
  	});
//Links
$("a[href$=pdf]").addClass("adobepdf");
$("a[href$=doc]").addClass("msword");
$("a[href$=docx]").addClass("msword");
});
