﻿$(document).ready(function()
{
	//SearchBox
	$("#ctl00_ctl00_sbox").focusin(
                function()
                {
                	$("#dropoption").fadeIn("fast");
                }).focusout(
                function()
                {
                	$("#dropoption").fadeOut("fast");
                }
             );

	//External Link (Replacement for target="blank")
	/*$('a[href^=http]').not(".internal").addClass('external').click(function() {
	window.open(this.href);
	return false;
	});*/

	//Disabled Link
	$('a.disabled').removeAttr("href").click(function()
	{
		return false;
	});

	//BreadCrumb
	$("span.sep").last().css("background-position", "top left");

	//Ad rotator
	/*$("div.adtabs").tabs("div.adbox > div", {
		effect: 'fade',
		rotate: 'true',
		fadeOutSpeed: "slow"
	}).slideshow({ autoplay: 'true', interval: 6666 });
	*/
	
	//ProductsSuite
	$("#links area").hover(function()
	{
		$("." + this.id).stop(true, true).fadeIn();
	}, function()
	{
		$("." + this.id).stop(true, true).fadeOut();
	});

	//screenshots
	$("a[rel=screenshots], a[rel=screenshotsrdm], a[rel=screenshotsrdmo], a[rel=screenshotspvm], a[rel=screenshotsrdms]").fancybox({ titlePosition: 'over', transitionIn: 'elastic', transitionOut: 'elastic' });
/*
	resizeWindow();
	$(window).resize(resizeWindow);*/

	$(".newsbox").scrollable({ vertical: true, mousewheel: true, circular: true }).autoscroll({ autoplay: true, interval: 5555 });

});

/*
function resizeWindow() 
{
    if ($(window).width() < 1000) 
    {
        $(".pub.rdm .pubimg").attr("src", "images/pub22.png");        
    }
    else 
    {
        $(".pub.rdm .pubimg").attr("src", "images/pub2.png");
    }  
}
*/
