$(document).ready(function()
    {
        $.fn.colorbox.settings.transition = "elastic";
        $.fn.colorbox.settings.bgOpacity = "0.65";
        $.fn.colorbox.settings.contentCurrent = "";
        if(navigator.appName == "Microsoft Internet Explorer"){
		$("#loginbtn").colorbox({
            contentWidth:"295px",
            contentHeight:"385px",
            contentIframe:true
        });

		$("#registerbtn").colorbox({
            contentWidth:"700px",
            contentHeight:"730px",
            contentIframe:true
        });

		}else {
			$("#loginbtn").colorbox({
            contentWidth:"275px",
            contentHeight:"365px",
            contentIframe:true
        });
		$("#registerbtn").colorbox({
            contentWidth:"700px",
            contentHeight:"720px",
            contentIframe:true
        });

		}

		 $("#updatebtn").colorbox({
            contentWidth:"700px",
            contentHeight:"670px",
            contentIframe:true
        });
       
		/*$.pir.options.php="pir.php"; //compulsary to include the php which converts text to image.
		$("#banner-header").pir({font: "handsean.ttf", wrap: true}); //will enable automatic text warping.
		$(".mainlefthead").pir({ font: "handsean.ttf", wrap: true}); //will enable automatic text warping.
		$(".members").pir({font: "handsean.ttf", wrap: true}); //will enable automatic text warping.
		$(".orangehead").pir({font: "handsean.ttf", wrap: true}); //will enable automatic text warping.
		$(".reghead").pir({font: "handsean.ttf", wrap: true}); //will enable automatic text warping.*/

    });

function iframe_height(h)
{
    $('#homepage_frame').height(h);
    $('#smalliframe').width(h);
}

function iframe_widen()
{
    $('#f_newsletter').hide();
    $('#mainright').hide();
    $('#mainleft2').hide();
    $('#homepage_frame').css('width','100%');
    $('#mainleft').css('width','100%');
	$('#mainleft').css('padding','0px');
	$('#main').css('padding','0px');
    $('#smalliframe').width(920);
}



