

//run functions depending on vars set in the html
//to turn off all ads, comment out line: eval(asd_page...
try{
 eval(asd_page + "_" + asd_place + "()");
}catch (err){}


//company pages
function co_head(){virtualgirlhd_peel();virtualgirlhd_tease_head();adultadworld_include()}
function co_headerbanner(){adultadworld_468x60();}
function co_menuleft_1(){}
function co_menuleft_2(){adultadworld_250x250();}
function co_menuleft_3(){adultadworld_250x250();}
function co_menuleft_4(){}
function co_mainright_1(){virtualgirlhd_vertical_banner()}
function co_mainright_2(){}
function co_mainright_3(){}
function co_footer(){}
function co_end(){virtualgirlhd_tease_body();adultfriendfinder_im()}

//area pages
function ar_head(){virtualgirlhd_peel();virtualgirlhd_tease_head();adultadworld_include()}
function ar_headerbanner(){adultadworld_468x60();}
function ar_menuleft_1(){}
function ar_menuleft_2(){adultadworld_250x250();}
function ar_menuleft_3(){}
function ar_mainright_1(){virtualgirlhd_vertical_banner()}
function ar_mainright_2(){}
function ar_mainright_3(){}
function ar_mainright_4(){}
function ar_footer(){}
function ar_end(){virtualgirlhd_tease_body();adultfriendfinder_im()}

//state pages
function st_head(){virtualgirlhd_peel();virtualgirlhd_tease_head();adultadworld_include()}
function st_headerbanner(){adultadworld_468x60();}
function st_menuleft_1(){}
function st_menuleft_2(){}
function st_mainright_1(){virtualgirlhd_vertical_banner()}
function st_mainright_2(){}
function st_mainright_3(){}
function st_footer(){}
function st_end(){virtualgirlhd_tease_body();adultfriendfinder_im()}

//directory home page
function dih_head(){virtualgirlhd_peel();virtualgirlhd_tease_head();adultadworld_include()}
function dih_headerbanner(){adultadworld_468x60();}
function dih_maincenter_1(){virtualgirlhd_vertical_banner()}
function dih_footer(){}
function dih_end(){virtualgirlhd_tease_body();adultfriendfinder_im()}

//directory pages
function di_head(){virtualgirlhd_peel();virtualgirlhd_tease_head();adultadworld_include()}
function di_headerbanner(){adultadworld_468x60();}
function di_menuleft_1(){adultadworld_120x240();}
function di_menuleft_2(){adultadworld_120x240_clear()}
function di_mainright_1(){}
function di_mainright_2(){}
function di_mainright_3(){affiliate_links()}
function di_mainright_4(){}
function di_footer(){}
function di_end(){virtualgirlhd_tease_body();adultfriendfinder_im()}

//pop.php
function popphp_head(){virtualgirlhd_peel();virtualgirlhd_tease_head();adultadworld_include()}
function popphp_headerbanner(){adultadworld_468x60();}
function popphp_menuleft_1(){adultadworld_120x240();}
function popphp_menuleft_2(){adultadworld_120x240();}
function popphp_menuleft_3(){adultadworld_120x240();}
function popphp_mainright_1(){virtualgirlhd_vertical_banner()}
function popphp_mainright_2(){}
function popphp_mainright_3(){}
function popphp_footer(){}
function popphp_end(){virtualgirlhd_tease_body();adultfriendfinder_im()}

//popular searches pages
function pop_head(){virtualgirlhd_peel();virtualgirlhd_tease_head();adultadworld_include()}
function pop_headerbanner(){adultadworld_468x60();}
function pop_menuleft_1(){adultadworld_120x240();}
function pop_menuleft_2(){adultadworld_120x240();}
function pop_menuleft_3(){adultadworld_120x240();}
function pop_mainright_1(){virtualgirlhd_vertical_banner()}
function pop_mainright_2(){}
function pop_mainright_3(){}
function pop_footer(){}
function pop_end(){virtualgirlhd_tease_body();adultfriendfinder_im()}

//popsearch.php (makes search result pages in html)
function popsearch_head(){virtualgirlhd_peel();virtualgirlhd_tease_head();adultadworld_include()}
function popsearch_headerbanner(){adultadworld_468x60();}
function popsearch_menuleft_1(){adultadworld_120x240();}
function popsearch_menuleft_2(){adultadworld_120x240();}
function popsearch_menuleft_3(){adultadworld_120x240();}
function popsearch_mainright_1(){virtualgirlhd_vertical_banner()}
function popsearch_mainright_2(){}
function popsearch_mainright_3(){}
function popsearch_footer(){}
function popsearch_end(){virtualgirlhd_tease_body();adultfriendfinder_im()}


//home page
function home_head(){virtualgirlhd_peel()}

//search page
function search_head(){virtualgirlhd_peel();virtualgirlhd_tease_head();adultadworld_include()}
function search_headerbanner(){adultadworld_468x60();}
function search_stores_menuleft_1(){adultadworld_250x250();}
function search_stores_menuleft_2(){}
function search_dir_menuleft_1(){adultadworld_120x240();}
function search_dir_menuleft_2(){adultadworld_120x240_clear()}
function search_mainright_1(){virtualgirlhd_vertical_banner()}
function search_mainright_2(){}
function search_mainright_3(){}
function search_footer(){}
function search_end(){virtualgirlhd_tease_body();adultfriendfinder_im()}

//add a link page
function addalink_head(){virtualgirlhd_peel();adultadworld_include()}
function addalink_headerbanner(){adultadworld_468x60();}
function addalink_menuleft_1(){}
function addalink_menuleft_2(){}
function addalink_mainright_1(){}
function addalink_mainright_2(){}
function addalink_footer(){}
function addalink_end(){} 













function affiliate_links(){
 document.write("<br><br>");
 document.write("<div style=\"background-color:#E7F5F8; padding:20px; border: 1px solid #707070\">");
 document.write("<h2>How to monetize your adult website</h2><br>");
 document.write("<a href=\"http://www.adultadworld.com/default.aspx?ref=CD7464\" target=\"_blank\">Adult AdWorld</a> - ");
 document.write("<a href=\"http://www.adultadworld.com/default.aspx?ref=CD7464\" target=\"_blank\" style=\"font-weight:normal;color:#000000;text-decoration:none;\">Here at Adult AdWorld we strive to offer adult and alternative web publishers the best ways to monetize all of their traffic with a variety of programs and one login. We are one of the only advertising companies to offer guaranteed income to adult and alternative publishers</a>");
 document.write("<br><br>");
 document.write("<a href=\"http://adultfriendfinder.com/go/g1084414-brk\" target=\"_blank\">AdultFriendFinder.com</a> - ");
 document.write("<a href=\"http://www.adultadworld.com/default.aspx?ref=CD7464\" target=\"_blank\" style=\"font-weight:normal;color:#000000;text-decoration:none;\">Our affiliate programme is the HIGHEST PAYING ANYWHERE, with many affiliates making 75 cents per click or up to 100% of every premium membership. Our monthly payout is over $500,000, with some of our best affiliates making over $30,000 per month</a>");
 document.write("<br><br>");
 document.write("<a href=\"http://www.totemcash.com/ref.php?s=41451\" target=\"_blank\">VirtualGirlHD</a> - ");
 document.write("<a href=\"http://www.adultadworld.com/default.aspx?ref=CD7464\" target=\"_blank\" style=\"font-weight:normal;color:#000000;text-decoration:none;\">Dress up your website or your blog with your favorite VirtuaGirls and receive 50 percent of everything the surfers you send us spend on our site</a>");
 document.write("<br></div>");
}





function adultfriendfinder_im(){
 document.write("<script type=\"text/javascript\" src=\"http://banners.adultfriendfinder.com/go/page/js_im_box?plain_text=1&delay=5&thumb=bigthumb&looking_for_person=1&photo=2&models=1&page=search&pid=g1084414-pct\"></scr" + "ipt>");
}


function adultadworld_include(){
 //bug - need include written before code can execute
 document.write("<script language=\"javascript\" src=\"http://cluster3.adultadworld.com/roturl.js\"></scr" + "ipt>")
}

function adultadworld_120x240(){
 document.write("<!--AdultAdworld A1 Codes Start For Publisher: 13920, Type: Banner, Category: Non Nude, Size:120x240--><script language=\"javascript\">displayBan(\'13920\', \'~/banners/1/3/120x240\', \'gNcdv%2fmwhskVxLi%2bQNJhAfgJYFlJTJ%2f9Tq73nMQwXjD5hfENhjycy20jEkk2AD5ou6Te83wPL3duTyxZg4p53rODzwv9yxL5sPYh20%2fmJsQ%3d\');</scr" + "ipt><!--AdultAdworld Codes End For Type: Banner, Category: Non Nude, Size:120x240-->");
}

function adultadworld_120x240_clear(){
 document.write("<div style=\"clear:both\">");
 document.write("<!--AdultAdworld A1 Codes Start For Publisher: 13920, Type: Banner, Category: Non Nude, Size:120x240--><script language=\"javascript\">displayBan(\'13920\', \'~/banners/1/3/120x240\', \'gNcdv%2fmwhskVxLi%2bQNJhAfgJYFlJTJ%2f9Tq73nMQwXjD5hfENhjycy20jEkk2AD5ou6Te83wPL3duTyxZg4p53rODzwv9yxL5sPYh20%2fmJsQ%3d\');</scr" + "ipt><!--AdultAdworld Codes End For Type: Banner, Category: Non Nude, Size:120x240-->");
 document.write("</div>");
}

function adultadworld_250x250(){
 document.write("<br>");
 document.write("<!--AdultAdworld A1 Codes Start For Publisher: 13920, Type: Banner, Category: Non Nude, Size:250x250--><script language=\"javascript\">displayBan(\'13920\', \'~/banners/1/3/250x250\', \'gNcdv%2fmwhskVxLi%2bQNJhAfgJYFlJTJ%2f9Tq73nMQwXjD5hfENhjycy20jEkk2AD5ou6Te83wPL3duTyxZg4p53rODzwv9yxL5sPYh20%2fmJsQ%3d\');</scr" + "ipt><!--AdultAdworld Codes End For Type: Banner, Category: Non Nude, Size:250x250-->");
}

function adultadworld_468x60(){
 document.write("<!--AdultAdworld A1 Codes Start For Publisher: 13920, Type: Banner, Category: Non Nude, Size:468x60--><script language=\"javascript\">displayBan(\'13920\', \'~/banners/1/3/468x60\', \'gNcdv%2fmwhskVxLi%2bQNJhAfgJYFlJTJ%2f9Tq73nMQwXjD5hfENhjycy20jEkk2AD5ou6Te83wPL3duTyxZg4p53rODzwv9yxL5sPYh20%2fmJsQ%3d\');</scr" + "ipt><!--AdultAdworld Codes End For Type: Banner, Category: Non Nude, Size:468x60-->");
}




function virtualgirlhd_vertical_banner(){
 document.write("<a href=\"http://clicks.totemcash.com/?s=41451&p=21&pp=1\" target=\"_blank\"><img style=\"float:right\" src=\"/virtualgirlhd/402.jpg\" width=140 height=600 border=0></a>");
}

function virtualgirlhd_peel(){
 document.write("<script> var ids=\'41451\';</scr" + "ipt>");
 document.write("<script language=\"javascript\" src=\"http://cbanners.virtuagirlhd.com/customdata/banner/flash/peel/peel.js\" type=\"text/javascript\"></scr" + "ipt>");
}

function virtualgirlhd_tease_head(){
 document.write("<script language=\"javascript\">AC_FL_RunContent = 0;</scr" + "ipt>");
 document.write("<script src=\"/virtualgirlhd/AC_RunActiveContent.js\" language=\"javascript\"></scr" + "ipt>");
}



function virtualgirlhd_tease_body(){
 document.write("<div style=\"position:fixed;bottom:0px;left:40px;z-index:1000;\" id=\"divFlashTeaser\">");
 document.write("<script language=\"javascript\">");


 document.write("if (AC_FL_RunContent != 0) {");
 document.write("AC_FL_RunContent(");
 document.write("\'codebase\', \'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\',");
 document.write("\'width\', \'325\',");
 document.write("\'height\', \'300\',");
 document.write("\'src\', \'/virtualgirlhd/vghd\',");
 document.write("\'quality\', \'high\',");
 document.write("\'pluginspage\', \'http://www.macromedia.com/go/getflashplayer\',");
 document.write("\'align\', \'middle\',");
 document.write("\'play\', \'true\',");
 document.write("\'loop\', \'true\',");
 document.write("\'scale\', \'showall\',");
 document.write("\'wmode\', \'transparent\',");
 document.write("\'devicefont\', \'false\',");
 document.write("\'id\', \'vghd\',");
 document.write("\'bgcolor\', \'#ffffff\',");
 document.write("\'name\', \'vghd\',");
 document.write("\'menu\', \'true\',");
 document.write("\'allowFullScreen\', \'false\',");
 document.write("\'allowScriptAccess\',\'sameDomain\',");
 document.write("\'movie\', \'/virtualgirlhd/vghd\',");
 document.write("\'salign\', \'\',");
 document.write("\'FlashVars\',\'sub=41451&firstdelay=10&hideexitbutton=0&id=21&xmlfile=/virtualgirlhd/vghd.xml\'");
 document.write(");");
 document.write("}");

 document.write("function vghd_DoFSCommand(command, args)");
 document.write("{");
 document.write("if ( command == \"closeflashteaser\" ) {");
 document.write("document.getElementById(\'divFlashTeaser\').style.visibility=\'hidden\';");
 document.write("}");
 document.write("if ( command == \"showflashteaser\" ) {");
 document.write("document.getElementById(\'divFlashTeaser\').style.visibility=\'visible\';");
 document.write("}");
 document.write("}");

 document.write("</scr" + "ipt>");
 document.write("</div>");
}


